#ifndef SERVER_H
#define SERVER_H

#include <QMainWindow>
#include <QtSql/QSqlDatabase>
#include <QtNetwork/QtNetwork>
#include <QtNetwork/QNetworkInterface>
#include <QMessageBox>
#include <QtSql/QSqlError>
#include <QSqlQuery>
#include <QDebug>
#include "mydb.h"

namespace Ui {
class Server;
}

class Server : public QMainWindow
{
    Q_OBJECT

public:
    explicit Server(QWidget *parent = 0);
    ~Server();

private slots:
    void getMessage();
    void getData();

private:
    Ui::Server *ui;
    QTcpServer *tcpServer;
    QTcpSocket *m_client;
    MyDB* mydb;
};

#endif // SERVER_H
